@extends('layouts._order')
<link type="text/css" rel="stylesheet" href="{{ asset('css/index.css') }}" />
@section('main')
    <div class="i_bg bg_color">
        <!--Begin 用户中心 Begin -->
        <div class="m_content">
            @include('layouts._orderleft')
            <div class="m_right">
                <div class="blogss" id="addres">
                    123
                </div>
            </div>
        </div>
        <!--End Footer End -->
    </div>
@endsection
@section('js')
    <script src="{{ mix('js/app.js') }}"></script>
    <script>
        var token = "{{session('admin')}}";
        var user_id = "{{ session('admin_info.user_id') }}";
        var message_id = "{{ $message_id }}";
        var type = "{{ $type }}";
        new Vue({
            el:'#addres',
            data:{
                message:[]
            },
            methods:{},
            mounted(){
                axios({
                    method: 'get',
                    url: 'http://shopapi.cn/api/my/readMessage',
                    params:{
                        token:token,
                        message_id:message_id,
                        type:type
                    }
                })
                    .then(
                        (res)=>{
                            this.message=res.data.data;
                        }
                    );
            },
        });
    </script>
@endsection